﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace SSOServer.Config
{
    public class SiteElement : ConfigurationElement
    {
        [ConfigurationProperty("siteName")]
        public string SiteName
        {
            get
            {
                return this["siteName"] as string;
            }
            set
            {
                this["siteName"] = value;
            }
        }

        [ConfigurationProperty("defaultUrl")]
        public string DefaultUrl
        {
            get
            {
                return this["defaultUrl"] as string;
            }
            set
            {
                this["defaultUrl"] = value;
            }
        }

        [ConfigurationProperty("siteId", IsRequired = true)]
        public int SiteID
        {
            get
            {
                return Convert.ToInt32(this["siteId"]);
            }
            set
            {
                this["siteId"] = value;
            }
        }
    }
}